/**
 * 
 */
package com.cqan.account.service.impl;


import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cqan.account.dao.AuthorityDao;
import com.cqan.account.entity.Authority;
import com.cqan.account.service.AuthorityService;
import com.cqan.service.impl.EntityServiceImpl;

/**
 * @Description 权限服务层实现
 * @author slaton.wu@gmail.com
 * @date 2012-6-29下午7:22:58
 *
 */
@Service("authorityService")
public class AuthorityServiceImpl extends EntityServiceImpl<Authority, Long,AuthorityDao>
		implements AuthorityService {
	
	@Override
	@Autowired
	public void setEntityDao(AuthorityDao entityDao) {
		this.entityDao = entityDao;
	}
	
	@Override
	public List<Authority> getMenus() {
		
		return entityDao.getMenus();
	}

	@Override
	public List<Authority> getTopMenus() {
		
		return entityDao.getTopMenus();
	}
}

